package com.xy.shop.web.service.impl;

import com.xy.shop.web.dao.WxUserMapper;
import com.xy.shop.web.entity.WxUser;
import com.xy.shop.web.service.WxUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WxUserServiceImpl implements WxUserService {
    @Resource
    private WxUserMapper WxUserMapper;
    @Override
    public int deleteByPrimaryKey(Integer uid) {
        return WxUserMapper.deleteByPrimaryKey(uid);
    }

    @Override
    public int insert(WxUser record) {
        return WxUserMapper.insert(record);
    }

    @Override
    public WxUser selectByPrimaryKey(Integer uid) {
        return WxUserMapper.selectByPrimaryKey(uid);
    }

    @Override
    public List<WxUser> selectAll() {
        return WxUserMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(WxUser record) {
        return WxUserMapper.updateByPrimaryKey(record);
    }

    @Override
    public WxUser selectByOpendId(String openId) {
        return WxUserMapper.selectByOpendId(openId);
    }

    @Override
    public int updateByPrimaryKeySelective(WxUser record) {
        return WxUserMapper.updateByPrimaryKeySelective(record);
    }
}
